let proarr=[{}]


relist()

async function relist() {
    let url="http://jx.xuzhixiang.top/ap/api/allproductlist.php"
    let pagesize=20
    let pagenum =0
    let uid="98071"
    let data={url,pagenum,pagesize}
    let r =await axios.get(url,{data})
    console.log(r.data);
let arr=r.data.data.map((v)=>
`  <li>
     <a href="详情页.html?pid=${v.pid}">
     <h2>${v.pname}</h2>
     <img src="${v.pimg}" alt="">
     <p>${v.pprice}</p></a>
 </li> `)
 document.querySelector("ul").innerHTML=arr.join("")
}   